package com.binance.mbxgateway.vo.request;

import java.math.BigDecimal;
import java.util.Date;

import javax.validation.constraints.NotNull;

import com.alibaba.fastjson.annotation.JSONField;
import com.binance.master.commons.ToString;
import com.fasterxml.jackson.annotation.JsonFormat;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author lynn
 */

@ApiModel("获取加个转换对象")
@Data
public class PriceConvertRequest extends ToString {
    @ApiModelProperty(value = "需要转换的自唱", required = true)
    @NotNull
    private String from;
    
    @ApiModelProperty(value = "目标资产", required = true)
    @NotNull
    private String to;
    
    @ApiModelProperty(value = "数量", required = false)
    private BigDecimal amount;
    
    @ApiModelProperty(value = "时间", required = false)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") //Jackson包
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")  //FastJson包使用注解
    private Date date;
}
